body {
    margin: 0; 
    padding: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-family: "Kosugi Maru", serif;
}


header {
    position: relative;
    width: 100%; 
    background-image: url("../img/sky2.webp"); 
    background-repeat: repeat-x; 
    background-size: 800px 200px; 
    padding: 20px 0;
    margin: 0;
    
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

@media (max-width:900px) {
    .logo {
        max-width: 95%; 
        height: auto;   
        text-align: center;
        display: block;
        margin: 0 auto;
    }
    .header-container {
        flex-direction: column; 
        justify-content: center; 
        align-items: center;    
    }
    header {
        position: relative;
        width: 100%; 
        background-image: url("../img/sky2.webp");
        background-repeat: repeat-x;
        background-size: 800px 200px; 
        padding: 20px 0;
        margin: 0;
        
    }
    .tel {
        width: 35%; 
        height: auto;   
    }
    .phone-number{  
        text-align: center;
        display: block;
        margin: 0 auto;
    } 
}

@media (max-width:650px){

    .tel {
        width: 50%; 
        height: auto;   
    }
}


.phone-number {
    color: #000000;
    padding: 5px;
}

/* 全体のスタイル */
nav {
    background-color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* ナビゲーションメニュー */
.nav-menu {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    list-style: none;
    transition: all 0.3s ease-in-out;
}

/* メニューアイテム */
.nav-menu li {
    position: relative;
    
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    display: block;
    font-size: 25px;
    border-radius: 5px;
}

.nav-menu li a:hover {
    background-color: #86ff30;
}


/* 仕切り線 */
.nav-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #ccc;
}

/* ハンバーガーメニューのアイコン */
.hamburger-menu {
    display: none;
    font-size: 40px;
}

/* バツボタン */
.close-menu {
    display: none;
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
}

/* スマホ画面のレスポンシブ対応 */
@media (max-width: 768px) {
/* ハンバーガーアイコン */
.hamburger-menu {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 8;  /* メニューより前面に */
    background-color: rgba(145, 230, 128, 0.7); /* 半透明の黒 */
    color: white;                        /* アイコンの色 */
    padding: 10px;
    border-radius: 8px;                  /* 角を丸く */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* 軽い影 */
}

.close-menu {
    display: none; /* 最初は非表示 */
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 30px;
    z-index: 20; /* ハンバーガーメニューと同じレベルで */
}

/* メニューを隠す */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgb(217, 235, 211), rgb(149, 205, 135));
    transform: translateY(-100%);
    transition: all .2s linear;
}

.nav-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.nav-menu li {
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

}





i {
    margin: 10px;
    font-size: 24px;
}

main {
    max-width: 1200px; 
    margin: 10px auto;  
    padding: 20px;     
    background: #fff; 
}

.hero-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;  
}

.hero-image {
    width: 90%; 
    max-width: 1200px;  
    height: auto;
    display: block;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 20px; /* 左右の間隔 */
    align-items: flex-start;
    
}


.sidebar {
    position: sticky;       
    top: 20px;               
    width: 30%;             
    background: #f0f0f0;
    padding: 20px;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;       
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    text-align: center;
}

.sidebar ul li a:hover {
    background: #86ff30;
}

/* 右側（メインコンテンツ） */
.main-content {
    width: 70%; /* 右側は70% */
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

@media (max-width: 760px) {
    .content-wrapper {
        flex-direction: column; 
    }

    .sidebar, .main-content {
        width: 90%;
    }

    .sidebar {
        margin-top: 20px; 
    }
}

h1 {
    text-align: center; 
    font-size: 30px; 
    margin-bottom: 20px;  
    margin-top: 0px;
}


.main-content h2 {
    text-align: center; 
    font-size: 30px; 
    margin-bottom: 20px;  
    margin-top: 0px;
}

.news-list {
    display: flex;
    flex-direction: column;
    max-height: 350px; 
    overflow-y: auto;  
    border: 1px solid #ffffff; 
    border-radius: 10px;
    padding: 20px;  
    background: #ffffff; 
}

.news-item {
    background: #ffffff; 
    padding: 15px;
    margin-bottom: 15px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    font-size: 20px; 
    margin: 0 0 10px 0;  
}

.news-item p {
    font-size: 16px; 
    color: #333; 
}
.news-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    flex-wrap: wrap; 
}

.news-date {
    color: rgb(0, 0, 0);  
    font-size: 15px; 
    margin-left: auto; 
}

footer {
    height:100px;
    background-image: url("../img/grass.webp"); 
    background-repeat: repeat-x;
    background-size: 500px 125px; 
    background-position: bottom;
    color: rgb(255, 255, 255); 
    text-align: center;
    display: flex;      
    flex-direction: column;
    justify-content: flex-end; 
}

footer a {
    color: white;      
    text-decoration: none;
}

footer a:hover {
    color: #f0f0f0;      
}

.copyright {
    margin-top: 0px;
    margin-bottom: 0px ;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th, .custom-table td {
    border: 1px solid rgb(143, 141, 141);
    padding: 10px;
    text-align: center;
}

.custom-table thead th {
    background-color: #4CAF50;
    color: white;
}

.custom-table tbody tr td:first-child {
    background-color: #4CAF50;
    color: white;
}

.custom-table tbody td {
    background-color: #fff
}

.legend {
    text-align: right;
    margin-top: 10px;
    font-size: 16px;
}

.time-frame {
    width: 200px;          
    padding: 10px;        
    border: 2px solid #333; 
    border-radius: 5px;    
    background-color: #f8f8f8;
    margin: 20px ;    
}

.time-frame p {
    margin: 10px 0;        
    font-size: 16px;       
    color: #333;          
}


.notice {
    margin-top: 20px; 
    font-size: 20px;
    color: #000;
}

.map-container {
    display: flex;
    justify-content: center;  
    align-items: center; 
    width: 100%;  
    height: 500px;
    box-sizing: border-box; 
}

.map-container iframe {
    width: 100%;  
    height: 100%;  
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  
    border: none;  
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 500px;  
    }
}


.address-section {
    width: 80%;              
    max-width: 1200px;       
    margin: 40px auto;       
    padding: 20px;           
    background-color: #f5f5f5; 
    border-radius: 8px;     
}

.address-section p {
    font-size: 18px;         
    color: #333;             
    line-height: 1.6;      
}  

.address-section h3 {
    font-size: 20px;        
    margin-top: 20px;      
    margin-bottom: 10px;    
}


/* 上に戻るボタンのデザイン */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;  /* 初期状態で非表示 */
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
}

/* ボタンが表示される時のアニメーション */
.scroll-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ホバー時のデザイン */
.scroll-top:hover {
    background: #0056b3;
}

/* 記事のスタイル */
.article {
    max-width: 900px; /* 最大幅を広げる */
    margin: 30px auto; /* 上下30px、中央寄せ */
    display: flex;
    flex-direction: column;
}



.article h2 {
    text-align: center; 
    font-size: 30px;
    margin-bottom:10px;
    margin-top: 10px;
}

.article h3 {
    font-size: 22px;
    margin-top: 20px;
    padding-left: 10%; 
    max-width: 800px;
}


.description {
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 30px;
    padding-left:50px;
    max-width: 800px;
}

.image-container {
    display: flex;
    justify-content: center; 
    margin-top: 10px;
}

.article img {
    width: 80%; 
    max-width: 500px;
    cursor: pointer;
}

#overlay {
    display: none;  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#popup {
    max-width: 70%;  
    max-height: 70%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup img {
    width: auto;
    height: auto;
    max-width: 90%;  
    max-height: 90%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

@media (max-width: 768px) {
    #overlay, #popup {
        display: none !important; 
    }
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* レスポンシブ対応 */
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}


.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item h3 {
    margin-top: 8px;
    font-size: 16px;
}

/* オーバーレイ背景 */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 説明カード */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.info-card img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-content {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 400px;
}

.card-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}

.card-content p {
    margin: 10px 0 0;
    font-size: 16px;
    color: #555;
}

@media (max-width: 600px) {
    .info-card {
        flex-direction: column;
        align-items: center;
    }
    .info-card img {
        width: 80%;
    }
    .card-content {
        width: 80%;
        padding-left: 0;
        padding-top: 15px;
    }
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 100;
}


#popup {
    max-width: 50%;
    max-height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}


.image-container {
    margin-top: 30px;
}

.error {
    width: 200px;
    height: auto;
}


.device-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* レスポンシブ対応 */
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.device-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .device-item {
      text-align: center;
    }


    .device-item img:hover {
      transform: scale(1.05);
    }

    .device-item h3 {
      font-size: 14px;
      margin-top: 5px;
    }

    /* オーバーレイ */
    .screen-mask {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* 説明カード */
    .device-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      display: flex;
      flex-direction: row;
      max-width: 700px;
      width: 80%;
      gap: 20px;
    }

    .device-card img {
      width: 250px;
      height: auto;
      border-radius: 8px;
    }

    .device-text {
      flex: 1;
    }

    @media (max-width: 600px) {
      .device-card {
        flex-direction: column;
        text-align: center;
      }

      .device-card img {
        width: 80%;
        margin: 0 auto;
      }
    }


.director-section {
    width: 80%;              
    max-width: 1200px;       
    margin: 40px auto;       
    padding: 20px;           
    background-color: #f5f5f5; 
    border-radius: 8px;     
}

.director-section p {
    font-size: 15px;         
    color: #333;             
    line-height: 2;      
}  

.director-section h3 {
    font-size: 20px;        
    margin-top: 10px;      
    margin-bottom: 10px;    
}